package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Student;
import pojo.User;

import java.util.List;

public interface StudentDao {
    int addStudent(Student student);

    int updateStudent(Student student);

    int deleteStudentById(int id);

    Student findStudentById(int id);

    List<Student> findAll(@Param("student") Student student , @Param("offset")int offset, @Param("pageSize") int pageSize);
    List<Student> findAll2(@Param("studentNum") String studentNum,@Param("studentName") String studentName,@Param("offset")int offset,@Param("pageSize")int pageSize);

    int count(Student student);
}
